<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    {% load static %}
    <title>用户注册</title>
    <link rel='stylesheet' href='http://fonts.googleapis.com/css?family=PT+Sans:400,700'>
    <link rel="stylesheet" href="{% static 'user/css/reset.css' %}">
    <link rel="stylesheet" href="{% static 'user/css/supersized.css' %}">
    <link rel="stylesheet" href="{% static 'user/css/style.css' %}">
</head>
<body>
<div class="page-container">
    <h1>注册</h1>
    <form action={% url 'user:register' %} method="post">
        {% csrf_token %}
        {% for field in register_form %}
            <div>
                {{ field }}
            </div>
        {% endfor %}
        <button type="submit">注册</button>
    </form>
    <button id="btn_login">登录</button>
    <div><span class="error_message">{{ error_message }}</span></div>
</div>

<script src="{% static 'user/js/jquery-1.8.2.min.js' %}"></script>
<script src="{% static 'user/js/supersized.3.2.7.min.js' %}"></script>
<script src="{% static 'user/js/supersized-init.js' %}"></script>
<script type="text/javascript">
    $("#btn_login").click(function () {
         window.location.href = "{%  url 'user:login' %}";
    });
</script>

</body>
</html>